<?php
/**
 * TinyCMS入口文件
 * @author 	kelecode@gmail.com
 * @date 	2013-04-27
 */
 
define('IN_SITE',true);
define('APP_NAME',$_SERVER['OPENSHIFT_APP_NAME']);
define('APP_ROOT', str_replace('\\','/',dirname(__FILE__)));
define('APP_DATA', $_SERVER['OPENSHIFT_DATA_DIR']);
define('APP_TMP', $_SERVER['OPENSHIFT_TMP_DIR']);
define('APP_LOG', APP_DATA .  'logs/');
define('APP_CACHE', APP_TMP . 'cache/');
define('LIB_PATH', APP_ROOT . '/lib/TinyCorePHP');
require LIB_PATH . '/TinyCorePHP.php';
require LIB_PATH . '/page.class.php';
Tiny::run();